<?php
/**
 * 载入视图的缩略写法
 */
function lv($view, $vars = array(), $return = FALSE)
{
	$CI =& get_instance();
	
	//if($CI->input->get_post('json'))
	//{
	//	echo json_encode($vars);
	//}
	//else
	//{
		$CI->load->view($view, $vars, $return);
	//}
}


/**
 * 载入模型文件的缩略写法
 */
function lm($model, $name = '', $db_conn = FALSE)
{
	$CI =& get_instance();
	
	$CI->load->model($model, $name, $db_conn);
}

/**
 * 载入类库文件的缩略写法。
 */
function ll($library = '', $params = NULL, $object_name = NULL)
{
	$CI =& get_instance();
	
	$CI->load->library($library, $params, $object_name);
}

function op($key)
{
	$CI =& get_instance();
	
	return $CI->option->getOption($key);
}

function gc($model,$method,$params = array(),$modelLoaded = FALSE)
{
	$CI =& get_instance();
	
	return $CI->dbcache->getCache($model,$method,$params,$modelLoaded);
}
?>